package com.decent.web.system.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;

import javax.validation.constraints.NotNull;

/**
 * @author: decent Gjh
 * @date: 2022/10/29/15:16
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateOrderDTO {
    @NotNull(message = "用户id不能为null",groups = {Insert.class})
    private Integer userId;
    @NotNull(message = "商品id不能为null",groups = {Insert.class})
    private Integer goodsId;
    @NotNull(message = "下单数量",groups = {Insert.class})
    private Integer num;
}
